package io.renren.sf.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import io.renren.sf.entity.CampusEntity;
import io.renren.sf.entity.CbChapterEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.sf.vo.BookToUnitVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author cyl_txw
 * @email cyl_txw@gmail.com
 * @date 2021-03-31 13:04:12
 */
@Mapper
public interface CbChapterDao extends BaseMapper<CbChapterEntity> {
    List<BookToUnitVo> getBookAndUnitByEditionId(@Param("editionId") Long editionId);

    List<CbChapterEntity> getChapterAndPicAndWord(@Param("uid") long uid);
}
